package kr.or.javacafe.USCM.USCM100.web;

import java.util.*;
import java.sql.*;
import java.io.*;

import org.springframework.web.servlet.mvc.multiaction.MultiActionController;
import org.springframework.web.servlet.ModelAndView;
import org.apache.commons.logging.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import kr.or.javacafe.common.dao.*;
import kr.or.javacafe.common.util.*;

import kr.or.javacafe.USCM.USCM100.dao.*;
import kr.or.javacafe.USCM.USCM100.service.*;
import kr.or.javacafe.USCM.USCM100.model.*;


public class USCM100Controller extends MultiActionController {
	
	protected final static Log logger = LogFactory.getLog(USCM100Controller.class);
	
	private USCM100Service uscm100Service;
	
	public void setUscm100Service(USCM100Service uscm100Service){
		this.uscm100Service = uscm100Service;
	}
	

	
	public ModelAndView uscm100Main(HttpServletRequest request, HttpServletResponse response) throws Exception
	{
		ModelAndView returnPage = new ModelAndView("USCM100/uscm100Main");		
		return returnPage;
	}

		
	public ModelAndView findMemberList(HttpServletRequest request, HttpServletResponse response) throws Exception
	{
		if (logger.isDebugEnabled()){ logger.debug("Entering " + getClass() + "." + "ajax_path_normal()"); }
		
		List objList = uscm100Service.findMemberList();
		
		ModelAndView returnPage = new ModelAndView("JSON", "JSON_DATA", objList);	
		returnPage.addObject("objList", objList);
		
		return returnPage;
	}	
	
}
